package com.sihai.ehr.service;

import com.sihai.ehr.model.biz.AuditType;
import com.sihai.ehr.model.biz.Auditing;

import java.util.List;

/**
 * @author: wxn
 * @since: 12-7-11 下午9:53
 *
 * 审核相关Service
 */
public interface AuditService {
    Long findAuditFlowCount(final Long organizationId, final AuditType auditType);

    List<Auditing> findAudits(Long organizationId, AuditType auditType);

    List<Auditing> findAudits(Long organizationId, AuditType auditType, Long tid);
    /** 根据当前登录者获取TID */
    List<Auditing> findAuditsTIDByCurrentLoginUserId(Long organizationId, AuditType auditType, Long userId);
    
    void save(Auditing auditing);

    void save(Auditing auditing, String batchIds);

    void remove(Long aid);

    Auditing get(Long id);

    void removeAll(Auditing auditing) throws Exception;

    void removeAll(Auditing auditing, String batchIds) throws Exception;

    void saveOrders(String[] orders);
}
